require('games.heroes3.h3maprw')
ud=require('uchardet')
info=h3MapGetInfo(arg[1])
txt=info.name.str .. ';' .. info.description.str
print(txt)
encoding,lang=ud.detect(txt)
printk(2,'%s,%s\n',encoding,lang)
--[[
det=ud.create()
det:reset()
det:handle_data(txt)
det:data_end()
tprint (det:result())
]]